From b2d2ba61eda64c4a30348d90a1c7168296518382 Mon Sep 17 00:00:00 2001 From: Reedy Date: Fri, 13 Sep 2019 18:44:11 +0100 Subject: [PATCH] user: Use cached singleton instance variable Remove unnecesary qualification (there's a use statement) Change-Id: I0c39e2086f38275db7912231f6ddbfa090f095d8 --- includes/user/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/user/User.php b/includes/user/User.php index d71750bcfd..6b3e3b2750 100644 --- a/includes/user/User.php +++ b/includes/user/User.php @@ -4320,13 +4320,13 @@ class User implements IDBAccessObject, UserIdentity { 'password' => $password, ] ); - $res = AuthManager::singleton()->beginAuthentication( $reqs, 'null:' ); + $res = $manager->beginAuthentication( $reqs, 'null:' ); switch ( $res->status ) { case AuthenticationResponse::PASS: return true; case AuthenticationResponse::FAIL: // Hope it's not a PreAuthenticationProvider that failed... - \MediaWiki\Logger\LoggerFactory::getInstance( 'authentication' ) + LoggerFactory::getInstance( 'authentication' ) ->info( __METHOD__ . ': Authentication failed: ' . $res->message->plain() ); return false; default: -- 2.20.1